import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '卡分类',
            dataIndex: 'vipcardCategoryId',
            width: 200,
        },
        {
            title: '卡种编号',
            dataIndex: 'vipCardNumber',
            width: 200,
        },
        {
            title: '续卡价格',
            dataIndex: 'newPrice',
            width: 200,
        },
        {
            title: '卡协议',
            dataIndex: 'agreement',
            width: 200,
        },
        {
            title: '计费方式（1期间卡 2计次卡）',
            dataIndex: 'billingWay',
            width: 200,
        },
        {
            title: '权益简介',
            dataIndex: 'vipcardDesc',
            width: 200,
        },
        {
            title: '卡号前缀',
            dataIndex: 'prefixNo',
            width: 200,
        },
        {
            title: '卡号后缀',
            dataIndex: 'suffixNo',
            width: 200,
        },
        {
            title: '卡号公共',
            dataIndex: 'commonNo',
            width: 200,
        },
        {
            title: '（续卡卡种（1是，2不是））',
            dataIndex: 'isContinue',
            width: 200,
        },
        {
            title: '是否包含区域号（卡号规则1包含,2不包含）',
            dataIndex: 'isContainArea',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'firstRecommend',
            width: 200,
        },
        {
            title: '会员卡排序',
            dataIndex: 'vipcardSort',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'useWeChatId',
            width: 200,
        },
        {
            title: '去掉前缀后缀区域号的最大部分',
            dataIndex: 'maxVipcardNo',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isSyncVip',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isTakePeople',
            width: 200,
        },
        {
            title: '是否是体验卡种（0不是，1是）',
            dataIndex: 'isTiyan',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '卡分类',
            field: 'vipcardCategoryId',
            component: 'Input',
            required: true,
        },
        {
            label: '卡种编号',
            field: 'vipCardNumber',
            component: 'Input',
            required: true,
        },
        {
            label: '续卡价格',
            field: 'newPrice',
            component: 'Input',
            required: true,
        },
        {
            label: '卡协议',
            field: 'agreement',
            component: 'Input',
            required: true,
        },
        {
            label: '计费方式（1期间卡 2计次卡）',
            field: 'billingWay',
            component: 'Input',
            required: true,
        },
        {
            label: '权益简介',
            field: 'vipcardDesc',
            component: 'Input',
            required: true,
        },
        {
            label: '卡号前缀',
            field: 'prefixNo',
            component: 'Input',
            required: true,
        },
        {
            label: '卡号后缀',
            field: 'suffixNo',
            component: 'Input',
            required: true,
        },
        {
            label: '卡号公共',
            field: 'commonNo',
            component: 'Input',
            required: true,
        },
        {
            label: '（续卡卡种（1是，2不是））',
            field: 'isContinue',
            component: 'Input',
            required: true,
        },
        {
            label: '是否包含区域号（卡号规则1包含,2不包含）',
            field: 'isContainArea',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'firstRecommend',
            component: 'Input',
            required: true,
        },
        {
            label: '会员卡排序',
            field: 'vipcardSort',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'useWeChatId',
            component: 'Input',
            required: true,
        },
        {
            label: '去掉前缀后缀区域号的最大部分',
            field: 'maxVipcardNo',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isSyncVip',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isTakePeople',
            component: 'Input',
            required: true,
        },
        {
            label: '是否是体验卡种（0不是，1是）',
            field: 'isTiyan',
            component: 'Input',
            required: true,
        },
];
